package com.publish.file.common;

import java.util.HashMap;

/**
 * 键值对缓存对象，缓存在内存
 */
public class CacheUtils {
	private CacheUtils() {
	};

	private static CacheUtils cacheUtils = new CacheUtils();

	private HashMap<String, String> cacheValuesHashMap = new HashMap<String, String>();

	public static String getValue(String key) {
		boolean hasValue = cacheUtils.cacheValuesHashMap.containsKey(key);
		if (hasValue) {
			return cacheUtils.cacheValuesHashMap.get(key);
		}
		return null;
	}
}
